import request from '@/utils/request'

// 查询短信变更记录列表
export function listChange(query) {
  return request({
    url: '/biz/change/list',
    method: 'get',
    params: query
  })
}

// 查询短信变更记录详细
export function getChange(id) {
  return request({
    url: '/biz/change/' + id,
    method: 'get'
  })
}

// 新增短信变更记录
export function addChange(data) {
  return request({
    url: '/biz/change',
    method: 'post',
    data: data
  })
}

// 修改短信变更记录
export function updateChange(data) {
  return request({
    url: '/biz/change',
    method: 'put',
    data: data
  })
}

// 删除短信变更记录
export function delChange(id) {
  return request({
    url: '/biz/change/' + id,
    method: 'delete'
  })
}

// 导出短信变更记录
export function exportChange(query) {
  return request({
    url: '/biz/change/export',
    method: 'get',
    params: query
  })
}